﻿@model QRCode2.Models.User

@{
    ViewBag.Title = "Details";
}

@using (Html.BeginForm("Details", "User", FormMethod.Post, new { enctype = "multipart/form-data" }))
{

<fieldset>
    <legend>User</legend>

    <img src= "@Url.Content(ViewBag.Picture)" alt="Image" />


    <div class="display-field">
        @Html.DisplayFor(model => model.FirstName)
         
        @Html.DisplayFor(model => model.LastName)
    </div>

    <div class="display-field">
       
    </div>

    <div class="display-field"> 
      Phone:  @Html.DisplayFor(model => model.PhoneNumber)
    </div>

    <div class="display-field">
     Email:   @Html.DisplayFor(model => model.Email)
    </div>

    <div>
        @Html.ActionLink("View all Agent Listings", "Index", "HomeForSale", new {agentUserName = Model.UserName}, null)
    </div>


    @if (ViewBag.CommentSend != "")
    {
        <br />
         <label for="lblQRCode">@ViewBag.CommentSend</label>
        <br />
    }

    
        <label for="lblQRCode">Send Message to Agent</label>
        <input id="commentToAgent" name="commentToAgent" type="text" />
    
         <p>
            <input type="submit" value="Send Comment To Agent" />
        </p>

    

</fieldset>
    
}

